{include file="public/header" /}
{css href="__ROOT__/static/public/umeditor/themes/default/css/umeditor.css" /}
{js href="__ROOT__/static/public/umeditor/third-party/template.min.js" /}
{js href="__ROOT__/static/public/umeditor/umeditor.config.js" /}
{js href="__ROOT__/static/public/umeditor/umeditor.min.js" /}
<div class="container padding-top" style="width:1300px">
	<div class="line" style="height:100%;">
		<div class="x1 padding" style="width:489px">
			<div style="background:url('__ROOT__/static/public/images/webp.webp') no-repeat;background-size: 100%;height:810px;width:100%;text-align:center">
				<iframe style="width: 320px;margin: 143px 0px 0px 4px;height: 550px;" src="{:url('seller/index/preview')}?type=seller_detail"></iframe>
			</div>
		</div>
		<div class="x3 padding" style="width:784px;border-left:1px solid #ddd">
			<p class="padding text-white radius bg-{if $data.status==1}green{else}yellow{/if}">{:lang('status')}：{:lang('status_'.$data.status)}</p>
			{if $data.status==4 && $data.refuse}<span class="text-red padding-bottom">拒绝理由：{$data.refuse}</span><br/><br/>{/if}
			<div>
				<form method="post" class="form-x" style="border:none" action="">
					<div>
						
						<strong>{:lang('seller')}{:lang('introduce')}</strong>
						<hr/>						
						<br/>
						<div class="form-group">
						<div class="input-inline clearfix">
							<div class="label">
								<label for="image1">{:lang('image')}1</label>
							</div>
							<div class="field">
								<input type="text" readonly class="input input-auto" id="image1" name="image1" value="{$data.image1}" size="65" placeholder="{:lang('image')}" data-validate="required:{:lang('required')}" />
								<span class="addbtn"><button type="button" data-id="image1" class="button upload">{:lang('file')}</button></span>
							</div>
						</div>
						</div>
						<div class="form-group">
						<div class="input-inline clearfix">
							<div class="label">
								<label for="image2">{:lang('image')}2</label>
							</div>
							<div class="field">
								<input type="text" readonly onclick="$(this).val('')" class="input input-auto" id="image2" name="image2" value="{$data.image2}" size="65" placeholder="{:lang('image')}" />
								<span class="addbtn"><button type="button" data-id="image2" class="button upload">{:lang('file')}</button></span>
							</div>
						</div>
						</div>
						<div class="form-group">
						<div class="input-inline clearfix">
							<div class="label">
								<label for="image3">{:lang('image')}3</label>
							</div>
							<div class="field">
								<input type="text" readonly onclick="$(this).val('')" class="input input-auto" id="image3" name="image3" value="{$data.image3}" size="65" placeholder="{:lang('image')}" />
								<span class="addbtn"><button type="button" data-id="image3" class="button upload">{:lang('file')}</button></span>
							</div>
						</div>
						</div>
						<div class="form-group">
						<div class="input-inline clearfix">
							<div class="label">
								<label for="image4">{:lang('image')}4</label>
							</div>
							<div class="field">
								<input type="text" readonly onclick="$(this).val('')" class="input input-auto" id="image4" name="image4" value="{$data.image4}" size="65" placeholder="{:lang('image')}" />
								<span class="addbtn"><button type="button" data-id="image4" class="button upload">{:lang('file')}</button></span>
							</div>
						</div>
						</div>
						<div class="form-group">
							<div class="label">
								<label for="idcard">{:lang('idcard')}</label>
							</div>
							<div class="field">
								<input type="text" {if $data.idcard}readonly{/if} class="input input-auto" id="idcard" name="idcard" value="{$data.idcard}" size="80" placeholder="{:lang('idcard')}" data-validate="required:{:lang('required')}" />
							</div>
						</div>
						<div class="form-group">
							<div class="input-inline clearfix">
								<div class="label">
									<label for="idcardimg">{:lang('idcardimg')}</label>
								</div>
								<div class="field">
									{if !$data.idcardimg}
									<input type="text" readonly class="input input-auto" id="idcardimg" name="idcardimg" value="{$data.idcardimg}" size="65" placeholder="{:lang('idcardimg')}" data-validate="required:{:lang('required')}" />
									<span class="addbtn"><button type="button" data-id="idcardimg" class="button upload">{:lang('file')}</button></span>
									{else}
									<img height=100px src="{$data.idcardimg}"/>
									{/if}
								</div>
							</div>
						</div>
						<div class="form-group">
							<div class="label">
									<label for="idcardimg">{:lang('introduce')}</label>
								</div>
							<div class="field">
								<script type="text/plain" name="introduce" id="myEditor" style="width:591px;height:300px;">{$data.introduce}</script>
							</div>
						</div>
						<div class="form-button">
							<button class="button bg-main" type="submit">{:lang('submit')}</button>
						</div>
						<br/>
						</div>
				</form>
			</div>
		</div>
	</div>
</div>
<script>
	$('iframe').on("mousewheel DOMMouseScroll", function (e) {
    
    var delta = (e.originalEvent.wheelDelta && (e.originalEvent.wheelDelta > 0 ? 1 : -1)) ||  // chrome & ie
                (e.originalEvent.detail && (e.originalEvent.detail > 0 ? -1 : 1));              // firefox

    
    if (delta > 0) {
		$(this).scrollTop(100);
    } else if (delta < 0) {
        // 向下滚
        console.log("wheeldown");
    }
});
	var um = UM.getEditor('myEditor');</script>
{include file="public/footer" /}